package com.lhg.mapper;

import com.lhg.entity.Info;
import com.lhg.entity.Vo.InfoVo;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface InfoMapper {

    void insertInfo(Info info);

    List<Info> selectAll(String query, Integer userId);

    int deleteById(Integer id);

    Info selectById(Integer id);

    List<Info> selectByUserId(Integer userId);

    List<Info> selectExam(InfoVo infoVo, Integer userId);

    List<Info> selectInterview(InfoVo infoVo, Integer userId);

    List<Info> selectOffers(String today,Integer userId);

    List<Info> selectCountExam(String date, Integer userId);

    List<Info> selectCountInterview(String date, Integer userId);
}
